Keyword

{Solved} Overide

  • Charles
  • Charles's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 5 months ago - 8 years 5 months ago #153235 by Charles
{Solved} Overide was created by Charles
Hello,

I have different users using K2 . I would like to make disappear some elements when a creation of an article.

For example, for some users I want to disappear "special element" .

But I can not with CSS . I try with a substitution but it does not work .
What is the processus?

Thank you in advance for your help.
Last edit: 8 years 5 months ago by Charles.

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Elite Member
More
8 years 5 months ago #153237 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Overide
Hello Durand,
There is no standard process to do that. You can of course override a view in the administrator as you would do in the frontend inside the html folder of the template. To hide fields depending on the user is another thing, as it requires to use php alongside with the Joomla framework in order not only to hide the html field(s) according to the user's group but to ensure that the user cannot pass unauthorized data.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Charles
  • Charles's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 5 months ago #153254 by Charles
Replied by Charles on topic Overide
Okay thank you for your answer . If I put the desired parts from comments in the php code as possible ?

I'll try your solution.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 5 months ago #153265 by Krikor Boghossian
Replied by Krikor Boghossian on topic Overide
You can override the administrator template so you can add custom classes in order to hide certain elements.

Also I do not really understand what a "special element" is.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Charles
  • Charles's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 5 months ago #153320 by Charles
Replied by Charles on topic Overide
Thank's for the answer Krikor.

The "special element" is "Featured" in item edition.

It's solved, i used the answer of Krikor.

Regards,
Charly

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum